/**
 * Created by jiachenpan on 16/11/18.
 */
// 校验UUID
export function isvalidUUID(str: string) {
  const reg = /^[0-9A-Za-z]{8}-[0-9A-Za-z]{4}-[0-9A-Za-z]{4}-[0-9A-Za-z]{4}-[0-9A-Za-z]{12}$/
  return reg.test(str)
}

// 校验页面路由
export function isvalidPagePath(str: string) {
  const reg = /\/:id$/g
  return reg.test(str)
}



